import {Type} from '@angular/core';

export class DynModule<T> {
  width: string;
  height: string;
  dynComponent: Type<T>;

  constructor(opts: {
    width?: string;
    height?: string;
    dynComponent?: Type<T>
  } = {}) {
    this.width = opts.width || 'auto';
    this.height = opts.height || 'auto';
    this.dynComponent = opts.dynComponent;
  }
}
